﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.DAL;
using Automobile.service.Model;
using System.Data;


namespace Automobile.service.BLL
{
   public class WareHoseBll
    {
       WareHoseDal dal = new WareHoseDal();
        /// <summary>
        /// 显示库房信息
        /// </summary>
        /// <returns></returns>
        public List<WareHoseModel> WareHose()
        {
            return dal.WareHose();
        }
        /// <summary>
        /// 添加库房信息
        /// </summary>
        /// <returns></returns>
        public int AddWareHose(WareHoseModel w)
        {
            return dal.AddWareHose(w);
        }
        /// <summary>
        /// 删除库房信息
        /// </summary>
        /// <returns></returns>
        public int DeleWareHose(int WareHose_Id)
        {
            return dal.DeleWareHose(WareHose_Id);
        }

        /// <summary>
        /// 取单个库房信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetWareHose(string WareHose_Id)
        {
            return dal.GetWareHose(WareHose_Id);
        }

        /// <summary>
        /// 更新库房信息
        /// </summary>
        /// <param name="stu"></param>
        /// <returns></returns>
        public int UpdateWareHose(WareHoseModel w)
        {
            return dal.UpdateWareHose(w);
        }
    }
}
